<?php


namespace paper\exception;


use JetBrains\PhpStorm\Pure;
use paper\http\response\Response;

class ResponseException extends BaseException
{
    private Response $response;

    #[Pure]
    public function __construct(Response $response)
    {
        $this->response = $response;
        parent::__construct('', 0, null);
    }

    /**
     * @return Response
     */
    public function getResponse(): Response
    {
        return $this->response;
    }

}